// Copyright (c) 2022-2024 0x5BFA
// Licensed under the MIT License. See the LICENSE.

namespace FluentHub.Octokit.Models.v4
{
	/// <summary>
	/// The possible states of an alert
	/// </summary>
	[JsonConverter(typeof(StringEnumConverter))]
	public enum RepositoryVulnerabilityAlertState
	{
		/// <summary>
		/// An alert that is still open.
		/// </summary>
		[EnumMember(Value = "OPEN")]
		Open,

		/// <summary>
		/// An alert that has been resolved by a code change.
		/// </summary>
		[EnumMember(Value = "FIXED")]
		Fixed,

		/// <summary>
		/// An alert that has been manually closed by a user.
		/// </summary>
		[EnumMember(Value = "DISMISSED")]
		Dismissed,

		/// <summary>
		/// An alert that has been automatically closed by Dependabot.
		/// </summary>
		[EnumMember(Value = "AUTO_DISMISSED")]
		AutoDismissed,
	}
}
